export default {
    install: (app, options) => {
        app.config.globalProperties.$translate = (key) => {
            return key.split('.').reduce((val, key) => {
                if (val) {
                    return val[key]
                }
            }, options)
        }
    }
}